package com.example.ylgh.service;

import com.example.ylgh.model.hosp.Department;
import com.example.ylgh.vo.hosp.DepartmentQueryVo;
import com.example.ylgh.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @author hx
 * @create 2022/5/11 21:08
 * description:
 */

public interface DepartmentService {
    void save(Map<String, Object> map);

    Page<Department> findPageDepartment(int page, int limit, DepartmentQueryVo departmentQueryVo);

    void remove(String hoscode, String depcode);

    /**
     * 获取大小科室
     * @param hoscode
     * @return
     */
    List<DepartmentVo> findDepTree(String hoscode);

    String getDepName(String hoscode, String depcode);

    Department getDepartment(String hoscode, String depcode);
}
